package com.lm.scau.dyb.db;

import android.content.ContentValues;
import android.database.Cursor;

import java.util.List;

/**
 * Function:
 * auth：liming on 2016/8/4 16:13
 * mail：liming@wxchina.com
 */
public interface DbImpl {

    boolean save(String tableName, ContentValues values);

    boolean update(String table, ContentValues values, String whereClause, String[] whereArgs);

    boolean deleteTable(String tableName);

    boolean deleteTable2(String tableName);

    boolean delete(String table, String deleteSql, String obj[]);

    Cursor find(String findSql, String obj[]);

    boolean execSQL(String sql);

    boolean creatTable(String createTableSql, String tablename);

    boolean creatTable2(String createTableSql, String tablename);

    Object getConnection();

    boolean isTableExits(String tablename);

    boolean isTableExits(DybDB db, Object dbobj, String tablename);

    boolean saveWithTransaction(String tableName, List<ContentValues> values);

    boolean saveAll(String tableName, List<ContentValues> values);
}

